module.exports = function forEach(arr, fn) {
  for (const [index, value] of arr.entries()) {
    fn(value, index, arr);
  }
};
